package com.zbkj.service.service;

import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.shop.EbPopularAreas;
import com.zbkj.common.request.EbPopularAreasRequest;

import java.util.List;

public interface EbPopularAreasService {


    /**
     * 新增热门地区分类
     *
     * @param category 热门地区分类对象
     * @return 是否成功
     */
    public EbPopularAreas add(EbPopularAreas category);

    /**
     * 更新热门地区分类
     *
     * @param category 热门地区分类对象
     * @return 是否成功
     */
    public EbPopularAreas update(EbPopularAreas category);

    /**
     * 删除热门地区分类
     *
     * @param id 热门地区分类ID
     * @return 是否成功
     */
    public boolean delete(Integer id);

    /**
     * 根据ID查询热门地区分类
     *
     * @param id 热门地区分类ID
     * @return 热门地区分类对象
     */
    public EbPopularAreas getById(Integer id);

    /**
     * 分页查询
     *
     * @return
     */
    public PageInfo<EbPopularAreas> getPage(EbPopularAreasRequest request);
    public List<EbPopularAreas> findByList(EbPopularAreasRequest request);

}
